package com.yuantong.xyerp.core.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Jianguo.Yin on 2021-08-02.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ContractTransportationDto对象", description="合同和调拨运输信息")
public class ContractTransportationDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "运输信息来源：C-合同、单据；A-调拨")
    private String sourceType;

    @ApiModelProperty(value = "合同或调拨ID")
    private String sourceId;

    @ApiModelProperty(value = "结算方式：0-整车；1-按重量")
    private String settlementType;

    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "保底重量")
    private BigDecimal floorWeight;

    @ApiModelProperty(value = "保底价格")
    private BigDecimal floorFee;

    @ApiModelProperty(value = "实际重量")
    private BigDecimal actualWeight;

    @ApiModelProperty(value = "运输单的总运费")
    private BigDecimal actualFee;

    @ApiModelProperty(value = "出发区域码：330100")
    private String startAreaCode;

    @ApiModelProperty(value = "出发省市：浙江省杭州市（冗余字段）")
    private String startArea;

    @ApiModelProperty(value = "达到区域码：433000")
    private String destinationAreaCode;

    @ApiModelProperty(value = "到达省市：湖北省武汉市（冗余字段）")
    private String destinationArea;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "最新修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String creatorId;

    @ApiModelProperty(value = "结算状态：0-未添加；1-已添加；2-已完成（仓库审核后）")
    private String status;




    @ApiModelProperty(value = "创建时间")
    private Date businessCreateTime;

    @ApiModelProperty(value = "合同编号/ 业务编号（用户录入，唯一性验证）")
    private String contractNo;

    @ApiModelProperty(value = "单据编号/ 关联业务单号（用户录入，唯一性验证）")
    private String docNo;

    @ApiModelProperty(value = "业务类型：B-采购；S-销售")
    private String businessType;

    @ApiModelProperty(value = "运输路径")
    private String transportPath;



}
